<?phpclass AddressEntity extends AddressEntityBase{	public function __construct($arrValue = null, $prefix = '')	{		if(!is_null($arrValue) && is_array($arrValue)){			parent::__construct($arrValue, $prefix);		}	}	/**	 * Get Customer Name in Address	 */	public function getName()	{		$str = $this->firstName . " " . $this->lastName;		return $str;	}	/**	 *	 * Get Country Name	 */	public function getCountry()	{		$str = "";		$countryDataService = new CountryDataService();		if(!empty($this->countryId))		{			$item = $countryDataService->getById($this->countryId);			$str = $item->name;		}		return $str;	}	/**	 *	 * Get State Name	 */	public function getState()	{		$str = "";		$stateDataService = new StateDataService();		if(!empty($this->stateId))		{				$item = $stateDataService->getById($this->stateId);			$str = $item->name;		}				return $str;	}}